package com.hoshiibuy.goodsAllocation.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品总仓
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "GoodsGenWarehouse对象", description = "商品总仓")
public class GoodsGenWarehouse extends Model<GoodsGenWarehouse> {

	private static final long serialVersionUID = 1L;

	private Long id;

	@ApiModelProperty(value = "平台skuid")
	private String platformSkuid;

	@ApiModelProperty(value = "分仓名称")
	private String name;

	@ApiModelProperty(value = "总库存")
	private Integer stock;

	@ApiModelProperty(value = "采购价格")
	private BigDecimal purchPrice;

	@ApiModelProperty(value = "供货价格")
	private BigDecimal supplyPrice;

	@ApiModelProperty(value = "成本价格")
	private BigDecimal costPrice;

	@ApiModelProperty(value = "是否删除（0-否 1-是）")
	private Boolean isDel;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createdtime;

	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updatedtime;

	@ApiModelProperty(value = "创建人")
	private String createdby;

	@ApiModelProperty(value = "修改人")
	private String updatedby;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
